
/*
	"Hemi" JavaScript Framework
	Engine for Web Applications 3.1
	Composite file "hemi.comp.js" release: 3.1.9
	Copyright 2002 - 2010. All Rights Reserved.
	Author: Stephen W. Cote
	Email: sw.cote@gmail.com
	Project: http://www.whitefrost.com/Hemi/
	BSD License: http://www.whitefrost.com/Hemi.license.txt
*/
(function(){if(typeof Storage!="undefined"||D.TU(document.documentElement.addBehavior))return;H.include("hemi.util.config");H.namespace("storage.iestore",H,{st:"IEStorage",bs:0,bsr:0,cs:0,bsn:"IEStorageProvider",getPreferredStorage:
function(){return H.dom.storage.iestore.gP();},gP:
function(){var s=H.storage.iestore;if(!s.cs)s.init();return s.bs;},init:
function(){var s=H.storage.iestore,o,br;o=document.createElement("div");o.style.cssText="position:absolute;display:none;width:1px;height:1px;top:0px;left:0px;";document.body.appendChild(o);o.addBehavior("#default#userData");if(typeof o.XMLDocument!="undefined"){o.load(s.bsn);s.bs=o;br=s.bsr=H.util.config.newInstance();br.setElementParentName("c");br.setElementName("p");br.setAttrNameName("n");br.setAttrValueName("v");br.parseConfig(o.XMLDocument);}s.cs=1;return s.bs;},getLength:
function(){var o,s=H.storage.iestore,i=0,ar,r=0;o=s.gP();if(!o)return 0;if(s.bs){ar=s.bsr.getParams();for(;i<ar.length;i++)if(ar[i]!=null&&ar[i].value!=null&&typeof ar[i].value!="undefined")r++;return r;}return 0;},removeItem:
function(n){H.storage.iestore.setItem(n,null);},getItem:
function(n){var o,s=H.storage.iestore;o=s.gP();if(!o)return 0;if(s.bs)return s.bsr.getParam(n);return null;},setItem:
function(n,v){var o,s=H.storage.iestore;o=s.gP();if(!o)return 0;if(s.bs){s.bsr.writeParam(s.bs.XMLDocument,n,v);s.bs.save(s.bsn);return 1;}return 0;},key:
function(i){var o,s=H.storage.iestore,ar,m=0,n=0,z=0;o=s.gP();if(!o||i<0)return 0;if(s.bs){ar=s.bsr.getParams();for(;n<ar.length;n++){if(ar[i].value==null||typeof ar[i].value=="undefined")continue;if(m==i){z=ar[i].name;break;}m++;}return z;}return 0;},clear:
function(){var o,s=H.storage.iestore,ar,m=0,n=0,z=0;o=s.gP();if(!o)return 0;ar=s.bsr.getParams();for(var i=ar.length-1;i>=0;i--){if(ar[i].value==null||typeof ar[i].value=="undefined")continue;s.bsr.writeParam(s.bs.XMLDocument,ar[i].name,null);}s.bs.save(s.bsn);s.bsr.clearConfig();}});}());
/* End Hemi Framework 3.1 */
